
/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

媒体处理 API
媒体处理相关接口

OpenAPI spec version: v1
Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/

#import <Foundation/Foundation.h>

#import <JDCloudOCSDKMps/MpsExecutor.h>


/// 创建截图任务，创建成功时返回任务ID。本接口用于截取指定时间点的画面。
@implementation  MpsCreateThumbnailTaskExecutor

-(id) initWithJDCloudClient:(MpsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/thumbnail";
    return self;
}
@end

/// 查询截图任务，返回满足查询条件的任务列表。
@implementation  MpsListThumbnailTaskExecutor

-(id) initWithJDCloudClient:(MpsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/thumbnail";
    return self;
}
@end

/// 删除bucket的图片样式分隔符配置
@implementation  MpsDeleteStyleDelimiterExecutor

-(id) initWithJDCloudClient:(MpsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"DELETE";
    self.url = @"/regions/{regionId}/";
    return self;
}
@end

/// 获取媒体处理通知
@implementation  MpsGetNotificationExecutor

-(id) initWithJDCloudClient:(MpsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/notification";
    return self;
}
@end

/// 根据任务ID获取截图任务。
@implementation  MpsGetThumbnailTaskExecutor

-(id) initWithJDCloudClient:(MpsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/thumbnail/{taskId}";
    return self;
}
@end

/// 设置媒体处理通知, 在设置Notification时会对endpoint进行校验, 设置时会对endpoint发一条SubscriptionConfirmation(x-jdcloud-message-type头)的通知, 要求把Message内容进行base64编码返回给系统(body)进行校验
@implementation  MpsSetNotificationExecutor

-(id) initWithJDCloudClient:(MpsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"PUT";
    self.url = @"/regions/{regionId}/notification";
    return self;
}
@end

/// 设置图片样式分隔符
@implementation  MpsSetStyleDelimiterExecutor

-(id) initWithJDCloudClient:(MpsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"PUT";
    self.url = @"/regions/{regionId}/";
    return self;
}
@end

/// 获取bucket的图片样式分隔符配置
@implementation  MpsGetStyleDelimiterExecutor

-(id) initWithJDCloudClient:(MpsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/";
    return self;
}
@end
